<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>login page</title>
    <!-- <script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax.js"></script>-->
    <script type="text/javascript">
    	var xhr ; 
			function createxhr(){
				if(window.ActiveXObject)
				{
					xhr = new ActiveXObject("Microsoft.XMLHTTP");
				}else
				{
					xhr = new XMLHttpRequest(); 
				}
			}
			
			function mouse(){
				createxhr() ; 
				var url = "<%=request.getContextPath()%>/mouseTest.do?mouse=mouse&date="+new Date().getTime() ; 
				xhr.open("GET",url); 
				xhr.onreadystatechange = function() 
				{
					if(xhr.readystate==4)
					{
						if(xhr.status==200) 
						{
							var key = xhr.responseText ;
							alert(key);
						}
					}
					xhr.send(null) ; 
				}
			}
    </script>
  </head>
  
  <body>
  <input type="button" value="mouse" onclick="mouse();" />
  
    <form action="<%=request.getContextPath()%>/login.do" method="post">
     	用户名：<input type="text" name="uname"/><br>
  	 	密码：<input type="password" name="psw"/><br>
    	<input type="submit" value="提交"/>
    	<a href="<%=request.getContextPath()%>/uploadProcessDef.jsp">发布流程模板</a>
    </form>
  </body>
</html>
